﻿using System;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace Pku.BookStore.Model
{
    /// <summary>
    /// 
    /// </summary>	
    [DataContract]
    public class OrderFormModel
    {
        #region props

        /// <summary>
        /// 定单ID
        /// </summary>
        [DataMember]
        public int OrderID
        {
            get;
            set;
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        [DataMember]
        public int UserID
        {
            get;
            set;
        }

        /// <summary>
        /// 定单状态（0待确认 1已确认 2货物在途 3定单已签收 -1定单取消 -2定单拒收）
        /// </summary>
        [DataMember]
        public int OrderStatus
        {
            get;
            set;
        }

        /// <summary>
        /// 定单生成时间
        /// </summary>
        [DataMember]
        public DateTime OrderData
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Recipients
        {
            get;
            set;
        }

        /// <summary>
        /// 收货地址
        /// </summary>
        [DataMember]
        public string Address
        {
            get;
            set;
        }

        /// <summary>
        /// 手机号
        /// </summary>
        [DataMember]
        public string Phone
        {
            get;
            set;
        }

        /// <summary>
        /// 总价
        /// </summary>
        [DataMember]
        public decimal TotalPrice
        {
            get;
            set;
        }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string UserName
        {
            get;
            set;
        }

        /// <summary>
        /// 子单列表
        /// </summary>
        public List<OrderDetailModel> OrderList
        {
            get;
            set;
        }

        #endregion
    }

}

